package com.example.design_pattern.decorator;

/**
 * Created by SQ_BXZ on 2019-02-19.
 *  饮料
 */
public abstract  class Beverage {

    String description = "Unknow Beverage";
    public enum Size{
        TALL,// 中杯
        GRANDE, // 大杯
        VENTI // 超大杯
    }

    Size size = Size.TALL;

    public String getDescription() {
        return description;
    }

    public void setSize(Size size) {
        this.size = size;
    }

    public Size getSize() {
        return size;
    }

    // 计价方法
    public abstract double cost();

}
